cmake_minimum_required(VERSION 3.22.1)

project(tinyalsa)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

include_directories(./include)

add_library(aml_tinyalsa  SHARED mixer.c
        mixer_hw.c
        mixer_plugin.c
        pcm.c
        pcm_hw.c
        pcm_plugin.c
        snd_utils.c)